package com.hqyj.system.service.impl;


import com.hqyj.system.mapper.UserMapper;
import com.hqyj.system.model.User;
import com.hqyj.system.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @ClassName UserServiceImpl
 * @Description
 * @Author zlf
 * @Date 2021/9/8 9:58
 * @Version 1.0
 **/
@Service
public class UserServiceImpl implements UserService {
    //以属性的方式注入Mapper代理接口
    @Autowired
    private UserMapper userMapper;

    @Override
    public User queryUserByUserName(String username) {
        return userMapper.queryUserByUserName(username);
    }
}
